# 电影模块
import requests
from common.address import hostName, apiFindMovie
from common.vars import publicHeaders
from common.func import get_token



def find_movie_get(movieName):
    myToken = get_token()
    publicHeaders['token'] = myToken

    urlFindMovie = hostName + apiFindMovie

    paramsFindMovie = {
        "movieName": movieName
    }

    return requests.get(url=urlFindMovie, headers=publicHeaders, params=paramsFindMovie)


if __name__ == '__main__':
    resObj = find_movie_get('731')
    print(resObj.status_code)
    print(resObj.text)